package control;

import calculator.Calculator;

/**
 * @author ouweijian
 * @date 2023/2/11 17:08
 */
public class AcControl implements Control {

    private Calculator calculator;

    public AcControl(Calculator calculator) {
        this.calculator = calculator;
    }

    @Override
    public void control() {
        calculator.getInputDeque().clear();
        calculator.getDeleteStack().clear();
        System.out.println("计算结果已重置");
    }
}
